//格式化当日数据
// const getTodayData = async (req, res) => {
//     return new Promise(async (resolve, reject) => {
//         try {
            
//         }
//     })
// }
const dayjs = require('dayjs');
const dateUtils = {
    formatDate: (date,format='YYYY-MM-DD HH:mm:ss') => {
        return dayjs(date).format(format);
    }
}
module.exports = dateUtils;